class AlarmListBean {
  List<AlarmBean> list;
  int total;

  AlarmListBean({this.list, this.total});

  AlarmListBean.fromJson(Map<String, dynamic> json) {
    total = json['total'];
    if (json['list'] != null) {
      list = <AlarmBean>[];
      json['list'].forEach((v) => list.add(AlarmBean.fromJson(v)));
    } else {
      json['list'] = [];
    }
  }
}

class AlarmBean {
  String boxId;
  String buildingNo;
  String createTime;
  String elevatorId;
  String id;
  String maintenanceUnitId;
  String maintenanceUnitName;
  String shaft;
  int status;
  int type;
  String unitNo;
  String updateName;
  String updateTime;
  String villageId;
  String villageName;

  AlarmBean(
      {this.boxId,
      this.buildingNo,
      this.createTime,
      this.elevatorId,
      this.id,
      this.maintenanceUnitId,
      this.maintenanceUnitName,
      this.shaft,
      this.status,
      this.type,
      this.unitNo,
      this.updateName,
      this.updateTime,
      this.villageId,
      this.villageName});

  AlarmBean.fromJson(Map<String, dynamic> json) {
    boxId = json['boxId'];
    buildingNo = json['buildingNo'];
    createTime = json['createTime'];
    elevatorId = json['elevatorId'];
    id = json['id'];
    maintenanceUnitId = json['maintenanceUnitId'];
    maintenanceUnitName = json['maintenanceUnitName'];
    shaft = json['shaft'];
    status = json['status'];
    type = json['type'];
    unitNo = json['unitNo'];
    updateName = json['updateName'];
    updateTime = json['updateTime'];
    villageId = json['villageId'];
    villageName = json['villageName'];
  }
}
